/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const WmsRouter = {
  path: '/wms',
  component: Layout,
  redirect: '/wms/material-category/index',
  name: 'Wms',
  meta: {
    title: 'Wms',
    icon: 'nested'
  },
  alwaysShow: true,
  children: [
    {
      path: 'material-category',
      component: () => import('@/views/wms/material-category/index'),
      name: 'Material-Category',
      meta: {
        title: '物料分类'
      }
    },
    {
      path: 'material',
      component: () => import('@/views/wms/material/index'),
      name: 'Material',
      meta: {
        title: '物料档案'
      }
    },
    {
      path: 'material-inventory',
      component: () => import('@/views/wms/material-inventory/index'),
      name: 'Material-Inventory',
      meta: {
        title: '物料库存'
      }
    },
    {
      path: 'replenishment-application',
      component: () => import('@/views/wms/replenishment-application/index'),
      name: 'Replenishment-Application',
      meta: {
        title: '补货申请'
      }
    },
    {
      path: 'check-stock',
      component: () => import('@/views/wms/check-stock/index'),
      name: 'Check-Stock',
      meta: {
        title: '盘点库存'
      }
    },
    {
      path: 'transportation-management',
      alwaysShow: true,
      redirect: '/wms/transportation-management',
      component: () => import('@/views/wms/transportation-management/index'),
      name: 'Transportation-Management',
      meta: {
        title: '运输管理'
      },
      children: [
        {
          path: 'carrier-application',
          component: () => import('@/views/wms/transportation-management/carrier-application/index'),
          name: 'Carrier-Application',
          meta: {
            title: '承运申请'
          },
        },
        {
          path: 'vehicle-dispatching',
          component: () => import('@/views/wms/transportation-management/vehicle-dispatching/index'),
          name: 'Vehicle-Dispatching',
          meta: {
            title: '车辆调度'
          },
        },
        {
          path: 'distribution-management',
          component: () => import('@/views/wms/transportation-management/distribution-managerment/index'),
          name: 'Distribution-Management',
          meta: {
            title: '配送管理'
          },
        }
      ]
    },
  ]
}

export default WmsRouter
